<table cellpadding="3" cellspacing="1" class="table table-bordered table-hover" id="list-table">
    <thead>
    <tr>
        <th>就诊人</th>
        <th>联系电话</th>
        <th>医生</th>
        <th>科室</th>
        <th>订单类型</th>
        <th>下单时间</th>
        <th>状态</th>
        <th>金额</th>
        <th>最后处理时间</th>
        <th>操作</th>
    </tr>
    </thead>

<#if (registerOrderList?size>0) >
    <#list  registerOrderList as registerOrder>
        <tbody>
        <tr>
            <td align="center" valign="top" nowrap="nowrap">
                <#if (registerOrder.patientName)??>
                    ${registerOrder.patientName}
                </#if>
            </td>
           <td align="center" valign="top" nowrap="nowrap">
                <#if (registerOrder.userContact)??>
                    ${registerOrder.userContact}
                </#if>
            </td>
            <td align="center" valign="top" nowrap="nowrap">
                <#if (registerOrder.accepterName)??>
                    ${registerOrder.accepterName}
                </#if>
            </td>
            <td align="center" valign="top" nowrap="nowrap">
                <#if (registerOrder.departmentName)??>
                    ${registerOrder.departmentName}
                </#if>
            </td>
            <td align="center" valign="top" nowrap="nowrap">
                <#if (registerOrder.registerTypeName)??>
                    ${registerOrder.registerTypeName}
                </#if>
            </td>
            <td align="center" valign="top" nowrap="nowrap">
                <#if (registerOrder.createDate)??>
                    ${registerOrder.createDate?string("yyyy-MM-dd HH:mm:ss")}
                </#if>
            </td>
            <td align="center" valign="top" nowrap="nowrap">
                <#if (registerOrder.runStatus)??>
                    ${registerOrder.runStatus}
                </#if>
            </td>
            <td align="center" valign="top" nowrap="nowrap">
                <#if (registerOrder.registerPayoffTotal)??>
                    ${registerOrder.registerPayoffTotal}
                </#if>
            </td>
            <td align="center" valign="top" nowrap="nowrap">
                <#if (registerOrder.updateDate)??>
                    ${registerOrder.updateDate?string("yyyy-MM-dd HH:mm:ss")}
                </#if>
            </td>
            <td align="center">
                <a href="${basePath}/order/ajaxQueryOrderDetail.action?registerID=${registerOrder.registerid?c}">详情</a>|
                <a href="javascript:void(0)" onclick="queryMessage(this)" order-id="${registerOrder.registerid?c}">消息</a>
            </td>
        </tr>
        </tbody>
    </#list >
</#if>

</table>

<script type="text/javascript">
    listTable.currentPage =${(page.currentPage)?c};
    listTable.pageCount =${(page.totalPage)?c};
    listTable.recordCount =${(page.allRow)?c};
</script>
<!--分页-->
<table id="page-table" cellspacing="0">
    <tr>
        <td align="right" nowrap="true">
            <div id="turn-page">
                共<span id="totalRecords">${page.allRow} </span>条记录&nbsp;
                共<span id="totalPages">${page.totalPage}</span> 页&nbsp;
                当前第<span id="pageCurrent">${page.currentPage}</span>页&nbsp;

                每页显示记录条数 <input type='text' size='3' id='pageSize' value="${page.pageSize}"
                                onkeypress="return listTable.changePageSize(event)"/>
                <!--查询动作-->
                <input type='hidden' size='3' id='action' value="ajaxQueryStuff.action"/>


                <span id="page-link">
                    <a href="javascript:listTable.gotoPageFirst()">第一页</a>
                    <a href="javascript:listTable.gotoPagePrev()">前一页</a>
                    <a href="javascript:listTable.gotoPageNext()">下一页</a>
                    <a href="javascript:listTable.gotoPageLast()">最后一页</a>

                </span>
            </div>
        </td>

    </tr>
</table>